﻿using System;

namespace XXX.Models.AS
{
    /// <summary>
    /// 写入U8用的类
    /// </summary>
    public class AS_Customer
    {
        public string pubufts { get; set; }
        public bool ShouldSerializepubufts() => !string.IsNullOrEmpty(pubufts);

        public string cCusCode { get; set; }
        public bool ShouldSerialivecCusCode() => !string.IsNullOrEmpty(cCusCode);

        public string cCusName { get; set; }
        public bool ShouldSerialivecCusName() => !string.IsNullOrEmpty(cCusName);

        public string cCusAbbName { get; set; }
        public bool ShouldSerialivecCusAbbName() => !string.IsNullOrEmpty(cCusAbbName);

        public string cCCCode { get; set; }
        public bool ShouldSerialivecCCCode() => !string.IsNullOrEmpty(cCCCode);

        public string cTrade { get; set; }
        public bool ShouldSerialivecTrade() => !string.IsNullOrEmpty(cTrade);

        public string cDCCode { get; set; }
        public bool ShouldSerialivecDCCode() => !string.IsNullOrEmpty(cDCCode);
        

        public string cCusRegCode { get; set; }
        public bool ShouldSerialivecCusRegCode() => !string.IsNullOrEmpty(cCusRegCode);

        public string cCusBank { get; set; }
        public bool ShouldSerialivecCusBank() => !string.IsNullOrEmpty(cCusBank);

        public string cCreditAddCode { get; set; }
        public bool ShouldSerialivecCreditAddCode() => !string.IsNullOrEmpty(cCreditAddCode);

        public string cCusPhone { get; set; }
        public bool ShouldSerialivecCusPhone() => !string.IsNullOrEmpty(cCusPhone);

        public string cCusOAddress { get; set; }
        public bool ShouldSerialivecCusOAddress() => !string.IsNullOrEmpty(cCusOAddress);

        public string cCusAddress { get; set; }
        public bool ShouldSerialivecCusAddress() => !string.IsNullOrEmpty(cCusAddress);

        public string cCusAccount { get; set; }
        public bool ShouldSerialivecCusAccount() => !string.IsNullOrEmpty(cCusAccount);

        public string dCusDevDate { get; set; }
        public bool ShouldSerializedCusDevDate() => !string.IsNullOrEmpty(dCusDevDate);

        public string dEndDate { get; set; }
        public bool ShouldSerializedEndDate() => !string.IsNullOrEmpty(dEndDate);

        public string cCusPerson { get; set; }
        public bool ShouldSerialivecCusPerson() => !string.IsNullOrEmpty(cCusPerson);

        public string cCusPPerson { get; set; }
        public bool ShouldSerialivecCusPPerson() => !string.IsNullOrEmpty(cCusPPerson);

        public string cCusDepart { get; set; }
        public bool ShouldSerialivecCusDepart() => !string.IsNullOrEmpty(cCusDepart);

        public string cCusHand { get; set; }
        public bool ShouldSerialivecCusHand() => !string.IsNullOrEmpty(cCusHand);

        public string iCusDisRate { get; set; } = "0";

        public string iCusCreLine { get; set; } = "0";

        public string iCusCreDate { get; set; } = "0";

        public string cCusHeadCode { get; set; }
        public bool ShouldSerialivecCusHeadCode() => !string.IsNullOrEmpty(cCusHeadCode);

        public string iFrequency { get; set; } = "0";

        public string iCostGrade { get; set; } = "0";

        public string cCreatePerson { get; set; }
        public bool ShouldSerialivecCreatePerson() => !string.IsNullOrEmpty(cCreatePerson);

        public string cModifyPerson { get; set; }
        public bool ShouldSerialivecModifyPerson() => !string.IsNullOrEmpty(cModifyPerson);

        public string cInvoiceCompany { get; set; }
        public bool ShouldSerialivecInvoiceCompany() => !string.IsNullOrEmpty(cInvoiceCompany);

        public string bCredit { get; set; }
        public bool ShouldSerialivebCredit() => !string.IsNullOrEmpty(bCredit);

        public string bCreditDate { get; set; }
        public bool ShouldSerialivebCreditDate() => !string.IsNullOrEmpty(bCreditDate);

        public string bCreditByHead { get; set; }
        public bool ShouldSerialivebCreditByHead() => !string.IsNullOrEmpty(bCreditByHead);

        public string bLicenceDate { get; set; }
        public bool ShouldSerialivebLicenceDate() => !string.IsNullOrEmpty(bLicenceDate);

        public string bBusinessDate { get; set; }
        public bool ShouldSerialivebBusinessDate() => !string.IsNullOrEmpty(bBusinessDate);

        public string bProxy { get; set; } = "0";

        public string bLimitSale { get; set; } = "0";

        public string cCusContactCode { get; set; }
        public bool ShouldSerialivecCusContactCode() => !string.IsNullOrEmpty(cCusContactCode);

        public string bHomeBranch { get; set; } = "0";

        public string bCusState { get; set; } = "1";

        public string bShop { get; set; } = "0";

        public string cCusBankCode { get; set; }
        public bool ShouldSerialivecCusBankCode() => !string.IsNullOrEmpty(cCusBankCode);

        public string cCusExch_name { get; set; } = "人民币";

        public string bCusDomestic { get; set; } = "1";

        public string bCusOverseas { get; set; } = "0";

        public string cCusCreditCompany { get; set; }
        public bool ShouldSerialivecCusCreditCompany() => !string.IsNullOrEmpty(cCusCreditCompany);

        public string dCusCreateDatetime { get; set; } = DateTime.Now.ToString();
        public bool ShouldSerializedCusCreateDatetime() => !string.IsNullOrEmpty(dCusCreateDatetime);

        public string bServiceAttribute { get; set; }
        public bool ShouldSerialivebServiceAttribute() => !string.IsNullOrEmpty(bServiceAttribute);

        public string bRequestSign { get; set; }
        public bool ShouldSerialivebRequestSign() => !string.IsNullOrEmpty(bRequestSign);

        public string bOnGPinStore { get; set; }
        public bool ShouldSerialivebOnGPinStore() => !string.IsNullOrEmpty(bOnGPinStore);

        public string cCusMngTypeCode { get; set; } = "999";

        public string account_type { get; set; } = "26";

        public string dTouchedTime { get; set; }
        public bool ShouldSerializedTouchedTime() => !string.IsNullOrEmpty(dTouchedTime);

        public string dRecentlyContractTime { get; set; }
        public bool ShouldSerializedRecentlyContractTime() => !string.IsNullOrEmpty(dRecentlyContractTime);

        public string cLtcCustomerCode { get; set; }
        public bool ShouldSerialivecLtcCustomerCode() => !string.IsNullOrEmpty(cLtcCustomerCode);

        public string bTransFlag { get; set; } = "0";

        public string cLtcPerson { get; set; }
        public bool ShouldSerialivecLtcPerson() => !string.IsNullOrEmpty(cLtcPerson);

        public string dLtcDate { get; set; }
        public bool ShouldSerializedLtcDate() => !string.IsNullOrEmpty(dLtcDate);

        public string bIsCusAttachFile { get; set; }
        public bool ShouldSerialivebIsCusAttachFile() => !string.IsNullOrEmpty(bIsCusAttachFile);

        public string dRecentDeliveryDate { get; set; }
        public bool ShouldSerializedRecentDeliveryDate() => !string.IsNullOrEmpty(dRecentDeliveryDate);

        public string cCusDefine1 { get; set; }
        public bool ShouldSerialivecCusDefine1() => !string.IsNullOrEmpty(cCusDefine1);

        public string cCusDefine2 { get; set; }
        public bool ShouldSerialivecCusDefine2() => !string.IsNullOrEmpty(cCusDefine2);

        public string cCusDefine3 { get; set; }
        public bool ShouldSerialivecCusDefine3() => !string.IsNullOrEmpty(cCusDefine3);

        public string cCusDefine4 { get; set; }
        public bool ShouldSerialivecCusDefine4() => !string.IsNullOrEmpty(cCusDefine4);

        public string cCusDefine5 { get; set; }
        public bool ShouldSerialivecCusDefine5() => !string.IsNullOrEmpty(cCusDefine5);

        public string cCusDefine6 { get; set; }
        public bool ShouldSerialivecCusDefine6() => !string.IsNullOrEmpty(cCusDefine6);

        public string cCusDefine7 { get; set; }
        public bool ShouldSerialivecCusDefine7() => !string.IsNullOrEmpty(cCusDefine7);

        public string cCusDefine8 { get; set; }
        public bool ShouldSerialivecCusDefine8() => !string.IsNullOrEmpty(cCusDefine8);

        public string cCusDefine9 { get; set; }
        public bool ShouldSerialivecCusDefine9() => !string.IsNullOrEmpty(cCusDefine9);

        public string cCusDefine10 { get; set; }
        public bool ShouldSerialivecCusDefine10() => !string.IsNullOrEmpty(cCusDefine10);

        public string cCusDefine11 { get; set; }
        public bool ShouldSerialivecCusDefine11() => !string.IsNullOrEmpty(cCusDefine11);

        public string cCusDefine12 { get; set; }
        public bool ShouldSerialivecCusDefine12() => !string.IsNullOrEmpty(cCusDefine12);

        public string cCusDefine13 { get; set; }
        public bool ShouldSerialivecCusDefine13() => !string.IsNullOrEmpty(cCusDefine13);

        public string cCusDefine14 { get; set; }
        public bool ShouldSerialivecCusDefine14() => !string.IsNullOrEmpty(cCusDefine14);

        public string cCusDefine15 { get; set; }
        public bool ShouldSerialivecCusDefine15() => !string.IsNullOrEmpty(cCusDefine15);

        public string cCusDefine16 { get; set; }
        public bool ShouldSerialivecCusDefine16() => !string.IsNullOrEmpty(cCusDefine16);

        public string cCusSAProtocol { get; set; }
        public bool ShouldSerialivecCusSAProtocol() => !string.IsNullOrEmpty(cCusSAProtocol);
        
    }
}